package fr.umlv.m2.jee.portailEtudiant.service;

import fr.umlv.m2.jee.portailEtudiant.persistence.Course;
import fr.umlv.m2.jee.portailEtudiant.persistence.Tutorial;
import org.joda.time.DateTime;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 19/03/11
 * Time: 20:03
 * To change this template use File | Settings | File Templates.
 */
public class DisplayTutorial implements Serializable{

    private Tutorial tutorial;

    public DisplayTutorial(Tutorial tutorial) {
        this.tutorial = tutorial;
    }

    public String getName() {
        return tutorial.getName();
    }

    public Course getCourse() {
        return tutorial.getCourse();
    }

    public DateTime getPublishedDate() {
        return tutorial.getPublishDate();
    }

    public void getName(String name) {
        tutorial.setName(name);
    }

    public void setCourse(Course course) {
        tutorial.setCourse(course);
    }

    public void setPublishedDate(DateTime date) {
        tutorial.setPublishDate(date);
    }
}
